#include <stdio.h>

float a1, a2, a3;
float *max(float a, float b, float c)
{
	float *ptr;
	if (a >= b && a >= c)
	{
		ptr =  &a;
	}
	else if (b >= a && b >= c)
	{
		ptr = &b;
	}
	else
	{
		ptr = &c;
	}
	return ptr;
}
int main() /* 要调用上面定义函数的主函数 */
{
	float *p; /* 指针 */
	a1 = 386.7;
	a2 = 66.1;
	a3 = 99.1;
	p = max(a1, a2, a3);
	printf("The maximal value is : %.1f\n", *p);
	return 0;
}
